package com.hanxy.admin.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.hxy.base.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import lombok.experimental.SuperBuilder;

import java.util.List;

/**
* 系统用户实体
*
* @author dingyoukun
* @date 2021-08-26 20:22
**/
@Data
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value = "SysUser", description = "系统用户实体")
@TableName(value = "t_sys_user")
public class SysUser extends BaseEntity {

	/**
     * account 账户
     */
    @ApiModelProperty(value = "账户")
	private String account;

	/**
     * jobNo 工号
     */
    @ApiModelProperty(value = "工号")
	private String jobNo;

	/**
     * avatar 头像
     */
    @ApiModelProperty(value = "头像")
	private String avatar;

	/**
     * name 姓名
     */
    @ApiModelProperty(value = "姓名")
	private String name;

	/**
     * gender 性别 0-未知 1-女 2-男
     */
    @ApiModelProperty(value = "性别 0-未知 1-女 2-男")
	private Integer gender;

	/**
     * mobile 手机号码
     */
    @ApiModelProperty(value = "手机号码")
	private String mobile;

	/**
     * password 密码
     */
    @ApiModelProperty(value = "密码")
	private String password;

	/**
     * states 状态 1-启用 2-离职 3-禁用
     */
    @ApiModelProperty(value = "状态 1-启用 2-离职 3-禁用")
	private Integer states;

	/**
     * departmentId 部门id
     */
    @ApiModelProperty(value = "部门id")
	private Integer departmentId;

	/**
	 * 所拥有的角色名
	 */
	@TableField(exist = false)
	private List<String> roleNames;

}
